/*************创建接口***************/
package ggze.GGZEServer.home.dao.inter;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import ggze.GGZEServer.home.entity.ReRelation;

@Mapper
public interface ReRelationDao {
    int add(@Param("name0") String n, @Param("value0") String v);

    int delete(@Param("name1") String n, @Param("value1") String v);

    int update(@Param("name2") String n, @Param("value2") String v, @Param("name4") String va, @Param("value4") String vas);

    List<ReRelation> allSelect();

    ReRelation isSelect(@Param("name3") String n, @Param("value3") String v);

    List<ReRelation> paging(@Param("tjname") String tjname, @Param("tjva") String tjva, @Param("begin") int begin, @Param("end") int end);

    List<ReRelation> isSelectSome(@Param("ming") String ming, @Param("zhi") String zhi);

    ReRelation custom(@Param("sql") String sql);

    int getNum(@Param("sqlName") String sqlName, @Param("sqlVal") String sqlVal);

    List<ReRelation> customs(@Param("sql1") String sql1);

    int customsNum(@Param("sql2") String sql2);

    ReRelation likeSeach(@Param("ming1") String ming1, @Param("zhi1") String zhi1);

    ReRelation byMax(@Param("ming2") Double ming2);
}
